package com.ywqf_api.dao;

import com.ywqf_api.dto.in.GoodsDecorationDto;
import com.ywqf_api.dto.in.GoodsInfoDto;
import com.ywqf_api.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsDao {
    Goods findGoodsInfo(@Param("goodId") Integer goodId);

    List<GoodsCommunity> findCommunity(@Param("goodsId") int goodsId);

    List<CoodsPic> findGoodsShowPic(@Param("goodsId") int goodsId);

    List<CoodsPic> goodsDetailsPic(@Param("goodsId") int goodsId);

    public int addCommunity(GoodsInfoDto goodsInfoDto);

    public int addGoods(GoodsInfoDto goodsInfoDto);


    List<GoodsDecoration> findDecoration(@Param("goodsId") int goodsId);

    public int addDecoration(GoodsDecorationDto goodsDecorationDto);

    public int addDecorationGoods(GoodsDecorationDto goodsDecorationDto);

    Integer findIsReservation(@Param("customerId")Integer customerId,@Param("goodsId")Integer goodsId);

    public List<GoodsList> findGoodsList(@Param("customerId")int customerId,@Param("type") int type);
}
